package com.jin.blog.pojo;

import com.jfinal.plugin.activerecord.Model;

public class Project extends Model<Project>{

	private static final long serialVersionUID = -4866153915887357878L;
	public static final Project dao = new Project();

	private long _artCount;
	public long get_artCount(){
		_artCount = Article.dao.findFirst("select count(id) as cnt from article where finish=1 and projectId=?", getInt("id")).getLong("cnt");
		return _artCount;
	}
}
